package me.thava.android.tagedit;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.RandomAccessFile;

public class TagReader {
	public TagReader(String filename) throws Exception {
		System.out.println(filename);
		File f = new File(filename);
		FileInputStream fi = new FileInputStream(f);
		fi.skip(f.length() - 128);
		byte[] b = new byte[128];
		fi.read(b, 0, 128);
		String t = new String(b, "UTF-8");
		System.out.println(t);
	}
	
	public static void main(String[] args) throws Exception{
		TagReader tr = new TagReader("/home/thavanathan/Music/Chinna Kannan.mp3");
	}
}


